$ICON_SIZE: 2rem;
$DEFAULT_PADDING: 0.75rem;

.rstm-toggle-icon {
  display: inline-block;
  &-symbol {
    text-align: center;
    margin-right: 8px;
  }
}

.rstm-tree-item-group {
  list-style-type: none;
  padding-left: 0;
  border-top: 1px solid #ccc;
  text-align: left;
  width: 100%;
}

.rstm-tree-item {
  padding: 4px 0;
  height: 32px;
  cursor: pointer;
  color: rgba(102, 102, 102, 1);
  background: none;
  box-shadow: none;
  z-index: unset;
  position: relative;
  display: flex;
  align-items: center;
  .rstm-end-icon {
    width: 20px;
    height: 20px;
    position: absolute;
    right: 10px;
    top: 4px;
    opacity: 0;
  }

  .rstm-another-end-icon {
    width: 20px;
    height: 20px;
    position: absolute;
    right: 30px;
    top: 4px;
    opacity: 0;
  }

  &:hover {
    //background-color: #ECF1FE;
    color: #4578F8;
    .rstm-total {
      background: rgba(202, 216, 253, 1);
      color: rgba(69, 120, 248, 1);
    }
    .rstm-end-icon {
      opacity: 1;
    }

    .rstm-another-end-icon {
      opacity: 1;
    }
  }

  &--active {
    color: rgba(102, 102, 102, 1);
    background: rgba(236, 241, 254, 1);
    border: none;
    .rstm-label {
      color: #4578F8;
    }
  }

  &--focused {
    z-index: 999;
    border: none;
  }
}

.show-icon {
  &:hover {
    color: #666666;
  }
  .rstm-label {
    opacity: 0.5;
  }
  .rstm-end-icon {
     opacity: 1;
   }
  .rstm-another-end-icon {
    opacity: 1;
  }
 }

.has-icon-hover {
  .rstm-total {
    opacity: 0;
  }
}

.rstm-search {
  padding: 1rem 1.5rem;
  border: none;
  width: 100%;
}

.rstm-label {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 80%;
  flex-shrink: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: keep-all;
}

.rstm-total {
  display: flex;
  position: absolute;
  right: 10px;
  top: 8px;
  color: rgba(102, 102, 102, 1);
  width: 39px;
  height: 17px;
  background: #E9E9E9;
  border-radius: 9px;
  justify-content: center;
  align-items: center;
  font-size: 12px;
}

.rstm-tree-item--active .rstm-total {
  background: rgba(202, 216, 253, 1);
  color: rgba(69, 120, 248, 1);
}
